<?php
// +----------------------------------------------------------------------
// | 用户管理验证
// +----------------------------------------------------------------------
namespace app\webapp\validate;
use think\Validate;

class Userface extends Validate {
	protected $rule = [
		'user_id' => 'require|number',
		'face_id' => 'require|number',
		'name'    => 'require',
		'work'    => 'require',
		'phone'   => 'require|number',
	];

	protected $message = [
		'user_id' => '{%lang_user_id}',
		'face_id' => '用户画像验证失败',
		'name'    => '名字必须填写',
		'work'    => '单位必须填写',
		'phone'   => '手机号必须填写',
	];

	protected $scene = [
		'add' => ['user_id','face_id','name','work','phone'],
	];
}
